package com.aps.service;

import com.aps.entity.domain.dish.Dish;
import com.aps.entity.dto.PosSyncDish;
import com.aps.page.BaseQuery;
import com.aps.page.Pagination;

import java.util.List;

/**
 * @author liaoguangan
 * @description <菜品服务类>
 * @date 2018/4/2 18:36
 */
public interface IDishService {

    /**
     * POS向APS同步菜品信息
     * @param posSyncDish
     */
    void save(List<PosSyncDish> posSyncDish);

    /**
     * 查询菜品列表
     * @param baseQuery
     * @return
     */
    Pagination<Dish> listDishes(BaseQuery baseQuery);

    /**
     * 查询菜品信息
     * @param id
     * @return
     */
    Dish findById(String id);

    /**
     * 更新菜品信息
     * @param dish
     */
    void update(Dish dish);
}
